home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / util307.arc / ENVXPAND.DOC < prev    next >
Text File  |  1987-03-04  |  3KB  |  68 lines

  1.  
  2.                  ENVXPAND: Expand your ENVIRONMENT to 1K
  3.  
  4.  
  5.         DOS 2.0 and later releases give you and your programs the means to
  6. communicate through ENVIRONMENT strings, but no way to expand the rather
  7. cramped space originally allotted for the purpose.  Since PATH, COMSPEC and
  8. any prompt you may set all go there, you quickly run out.
  9.  
  10.         ENVXPAND provides a way of expanding your environment to 1024
  11. bytes, which should give you plenty of space for most uses.  The original
  12. DOS strings take up less than an eighth of this space.
  13.  
  14.         Thus you have plenty of space for a long path statement -- or for
  15. a complicated prompt string (see the ANSI.SYS writeup for possibilities)
  16. -- or to make use of the new environment functions of BASIC 3.0.
  17.  
  18.         As a side benefit, ENVXPAND gives you a large keyboard buffer, too.
  19.  
  20.         To use ENVXPAND, just follow these two easy steps:
  21.  
  22.         Step 1: Add the following line to your CONFIG.SYS file:
  23.  
  24.                         DEVICE=ENVXPAND.SYS
  25.  
  26.         This line should be the first one in your CONFIG.SYS file, ahead
  27. of any other installed devices or programs.
  28.  
  29.         Step 2: Rename your AUTOEXEC.BAT file on that disk or diskette to
  30. AUTOEXEK.BAT.
  31.  
  32.         Next time you boot from that disk or diskette, the system will
  33. expand your ENVIRONMENT string space to 1K.  It does this by adding
  34. place-holder strings PH0 through PH9 to your ENVIRONMENT through the SET
  35. command and then removing them.  (You cannot do this from a BAT file and
  36. it is tedious to do it from the keyboard every time you boot.)  Finally,
  37. ENVXPAND runs your AUTOEXEK.BAT file just as DOS runs your AUTOEXEC.BAT file
  38. under normal circumstances.
  39.  
  40.         That's all there is to it.  There are no co-residence problems because
  41. no new programs or interrupt handlers have been added to your system, only
  42. environment and keyboard buffer space.
  43.  
  44.         Also included is the program ENVINUSE.COM.  It will tell you how much
  45. of your ENVIRONMENT space is in use, including the null (00) delimiters of
  46. the strings.  You will find that you can fill up the environment with up
  47. to 1,024 bytes (that's hex 400) after booting with ENVXPAND.
  48.  
  49.         If you are an individual computer user and find this program useful,
  50. feel free to copy it for friends or upload it for free downloading on
  51. bulletin boards.  Those wishing to distribute my copyrighted program in
  52. connection with or for use with their own products should contact me
  53. at the address below.
  54.  
  55.         If you find this copyrighted program useful, please help me repay
  56. my company for the time I spent conceiving and developing it through a
  57. guilt-free contribution ($2-$5 suggested for a single machine) to:
  58.  
  59.                 SAUL EHRMANN
  60.                 1310 College Avenue, #1275
  61.                 Boulder, Colorado, 80302
  62.  
  63.         I'm trying to sell my company on using the "shareware" concept for
  64. providing such programs to the public, since they cannot be economically
  65. sold through the normal software distribution channels.  Please help me make
  66. my case by contributing if you find ENVXPAND useful.  I'd also like to
  67. hear of any problems or comments, whether or not you choose to contribute.
  68.